<template>
    <div class="m-celldiv">
    <yd-navbar title="账户信息" bgcolor="#008eff" color="#ffffff">
        <router-link to="#" slot="left">
            <yd-navbar-back-icon color="#ffffff"></yd-navbar-back-icon>
        </router-link>
    </yd-navbar>
    <yd-cell-group class="topbody">
        <yd-cell-item class="headimg" arrow>
            <span slot="left">头像</span>
            <span slot="right" ></span>
        </yd-cell-item>
        <yd-cell-item class="allsmi">
            <span slot="left">用户名</span>
            <span slot="right" class="rightdata">Restart。</span>
        </yd-cell-item>
        <yd-cell-item class="zhbd">
            <span slot="left">账号绑定</span>
            <span slot="right" class="rightdata"></span>
        </yd-cell-item>
        <yd-cell-item class="allsmi" arrow>
            <span slot="left">手机</span>
            <span slot="right" class="rightdata">13888888888</span>
        </yd-cell-item>
        <yd-cell-item class="zhbd">
            <span slot="left">安全设置</span>
            <span slot="right" class="rightdata"></span>
        </yd-cell-item>
        <yd-cell-item class="allsmi" arrow>
            <span slot="left">登录密码</span>
            <span slot="right" class="rightdata">修改</span>
        </yd-cell-item>
        <yd-cell-item class="buttop">
        </yd-cell-item>
        <yd-button size="large" @click.native="handleClick" type="danger" class="btn-blockzdy">退出登录</yd-button>
    </yd-cell-group>
    </div>
</template>

<script type="text/babel">
  export default {
    methods: {
      handleClick() {
        alert('Hello World!');
      }
    }
  }
</script>

<style>
body{
  background-color: #f5f5f5;
  font-family: "微软雅黑";
}
.headimg{
  background-color: #ffffff;
  width: 100%;
  height: 80px;
  padding-left: 20px;
}
.allsmi{
  background-color: #ffffff;
  width: 100%;
  height: 60px;
  padding-left: 20px;
}
.topbody{
  padding-top: 20px;
}
.rightdata{
  color: #949494;
}
.zhbd{
  background-color: #f5f5f5;
  color: #949494;
}
.cell-item:not(:last-child):after{
  margin-left: 0;
}
.buttop{
  background-color: #f5f5f5;
  color: #949494;
  height: 15px;
}
.btn-blockzdy {
  width: 90%;
  margin: auto;
  margin-top: 0;
}
.m-cell {
  background: inherit;
}
.buttop:not(:last-child):after{
  border-bottom: 0;
} 
.m-cell:after{
  border-bottom: 0;
} 
</style>
